<%@ Page Language="C#" MasterPageFile="~/Admin/BoardAdmin.Master" AutoEventWireup="true" CodeBehind="EditGroupPermissions.aspx.cs" Inherits="UserInterface.Admin.EditGroupPermissions" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <h1><%= GetLocalResourceObject("Header") %>: <asp:Literal ID="GroupNameLiteral" runat="server" /></h1>

    <script src="JavaScript/PermissionTools.js" type="text/javascript"></script>
    <asp:Repeater ID="ForumsRepeater" OnItemCreated="ForumsRepeater_ItemCreated" OnPreRender="ForumsRepeater_PreRender" runat="server">
        <HeaderTemplate>
            <table class="default-table">
                <tr>
                    <th class="default-option-width">Forum</th>
                    <th colspan="12">Permissions</th>
                </tr>
                <tr>
                    <td class="default-data-column"></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("Read") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("Reply") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("Vote") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CreateTopic") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CreatePoll") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CreateSticky") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CreateAnnouncement") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CreateFaq") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("EditOwn") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("DeleteOwn") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("Moderate") %></p></td>
                    <td class="default-data-column"><p class="verticaltext"><%= GetLocalResourceObject("CheckAll") %></p></td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td class="default-data-column"><asp:HiddenField ID="ForumIdHiddenField" runat="server" Value='<%# Eval("Id") %>' /><%# Eval("Name")%></td>
                    <td class="default-data-column"><asp:CheckBox ID="ReadCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="ReplyCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="VoteCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="CreateTopicCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="CreatePollCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="CreateStickyCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="CreateAnnouncementCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="CreateFaqCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="EditOwnCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="DeleteOwnCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:CheckBox ID="ModerateCheckBox" runat="server" /></td>
                    <td class="default-data-column"><asp:Image ID="ToggleCheckAllImage" ImageUrl="Template/Images/toggle-check-all.gif" runat="server" /></td>
                </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-data-column"><asp:HiddenField ID="ForumIdHiddenField" runat="server" Value='<%# Eval("Id") %>' /><%# Eval("Name")%></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="ReadCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="ReplyCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="VoteCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="CreateTopicCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="CreatePollCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="CreateStickyCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="CreateAnnouncementCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="CreateFaqCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="EditOwnCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="DeleteOwnCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:CheckBox ID="ModerateCheckBox" runat="server" /></td>
                    <td class="alternate-data-column"><asp:Image ID="ToggleCheckAllImage" ImageUrl="Template/Images/toggle-check-all.gif" runat="server" /></td>
                </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="options">
        <asp:Button ID="SaveButton" runat="server" OnClick="SaveButton_Click" Text="<%$ Resources:Save %>" />
    </div>
</asp:Content>
